import request from '@/utils/request'

// 查询业绩列表
export function listPerformance(query) {
    // return request({
    //     url: '/system/performance/list',
    //     method: 'get',
    //     params: query
    // })
}

// 查询业绩详情
export function getPerformance(performanceId) {
    return request({
        url: '/system/performance/' + performanceId,
        method: 'get'
    })
}

// 新增业绩
export function addPerformance(data) {
    return request({
        url: '/system/performance',
        method: 'post',
        data: data
    })
}

// 修改业绩
export function updatePerformance(data) {
    return request({
        url: '/system/performance',
        method: 'put',
        data: data
    })
}

// 删除业绩 
export function delPerformance(performanceId) {
    return request({
        url: '/system/performance/' + performanceId,
        method: 'delete'
    })
}